<?php
namespace app\common\model;

//use think\Model;

class NoticeModel extends BaseModel {

	protected $table = 'tp_notice';

	/*
	获取列表
	 */
	public function getNoticeList() {
		$data = $this->order('id desc')->select();
		return $data;
	}

	/*
	获取详情
	 */
	public function getDetail($id){
		$data = $this->where('id',$id)->find();
		return $data;
	}
}
